
<aside class="main-sidebar">
  <!-- sidebar: style can be found in sidebar.less -->
  <section class="sidebar">
    <!-- Sidebar user panel -->
    <div class="user-panel">
      <div class="pull-left image">
        <img src="__STATIC__/dist/img/user2-160x160.jpg" class="img-circle" alt="User Image">
      </div>
      <div class="pull-left info">
        <p>折叠菜单</p>
        <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
      </div>
    </div>
    <!-- search form -->
    <form action="#" method="get" class="sidebar-form">
      <div class="input-group">
        <input type="text" name="q" class="form-control" placeholder="搜索...">
        <span class="input-group-btn">
          <button type="submit" name="search" id="search-btn" class="btn btn-flat"><i class="fa fa-search"></i>
          </button>
        </span>
      </div>
    </form>
    <!-- /.search form -->
    <!-- sidebar menu: : style can be found in sidebar.less -->
    <ul class="sidebar-menu">
      <li class="header">主菜单</li>

  <!-- 商品管理模块 -->
    {if condition="show_auth('admin/AuthRule/index') || show_auth('admin/AuthGroup/index') || show_auth('admin/AdminUser/index')"}
      <li class="treeview {:class_active('Goods/GoodsBrand/GoodsCate/GoodsType')? 'active' : ''}">
        <a href="#">
          <i class="fa fa-life-bouy"></i> <span>商品管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        {if condition="show_auth('admin/Goods/index')"}
          <li class="{:class_active('Goods','index')? 'active' : ''}"><a href="{:url('admin/Goods/index')}"><i class="fa  fa-circle-o"></i> 商品列表</a></li>
        {/if}

        {if condition="show_auth('admin/GoodsCate/index')"}
          <li class="{:class_active('GoodsCate','index')? 'active' : ''}"><a href="{:url('admin/GoodsCate/index')}"><i class="fa  fa-circle-o"></i> 商品分类</a></li>
        {/if}

        {if condition="show_auth('admin/GoodsBrand/index')"}
          <li class="{:class_active('GoodsBrand','index')? 'active' : ''}"><a href="{:url('admin/GoodsBrand/index')}"><i class="fa  fa-circle-o"></i> 品牌列表</a></li>
        {/if}

        {if condition="show_auth('admin/GoodsType/index')"}
          <li class="{:class_active('GoodsType','index')? 'active' : ''}"><a href="{:url('admin/GoodsType/index')}"><i class="fa  fa-circle-o"></i> 商品类型</a></li>
        {/if}

        </ul>
      </li>
    {/if}

    <!-- 订单管理模块 -->
      {if condition="show_auth('admin/Order/index') || show_auth('admin/Shipping/index')"}
        <li class="treeview {:class_active('Order/Shipping')? 'active' : ''}">
          <a href="#">
            <i class="fa fa-dollar"></i> <span>订单管理</span>
            <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
          </a>
          <ul class="treeview-menu">
          {if condition="show_auth('admin/Order/index')"}
            <li class="{:class_active('Order','index')? 'active' : ''}"><a href="{:url('admin/Order/index')}"><i class="fa  fa-circle-o"></i> 订单列表</a></li>
          {/if}

          {if condition="show_auth('admin/Shipping/index')"}
            <li class="{:class_active('Shipping','index')? 'active' : ''}"><a href="{:url('admin/Shipping/index')}"><i class="fa  fa-circle-o"></i> 物流列表</a></li>
          {/if}

          </ul>
        </li>
      {/if}

    <!-- 文章管理模块 -->
    {if condition="show_auth('admin/AuthRule/index') || show_auth('admin/AuthGroup/index') || show_auth('admin/AdminUser/index')"}
      <li class="treeview {:class_active('Article/ArticleBrand/ArticleCate')? 'active' : ''}">
        <a href="#">
          <i class="fa  fa-book"></i> <span>文章管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        {if condition="show_auth('admin/Article/index')"}
          <li class="{:class_active('Article','index')? 'active' : ''}"><a href="{:url('admin/Article/index')}"><i class="fa  fa-circle-o"></i> 资讯列表</a></li>
        {/if}

        {if condition="show_auth('admin/ArticleCate/index')"}
          <li class="{:class_active('ArticleCate','index')? 'active' : ''}"><a href="{:url('admin/ArticleCate/index')}"><i class="fa  fa-circle-o"></i> 资讯分类</a></li>
        {/if}

        {if condition="show_auth('admin/ArticleBrand/index')"}
          <li class="{:class_active('ArticleBrand','index')? 'active' : ''}"><a href="{:url('admin/ArticleBrand/index')}"><i class="fa  fa-circle-o"></i> 文档列表</a></li>
        {/if}

        {if condition="show_auth('admin/aab/index')"}
          <li class="{:class_active('abc','index')? 'active' : ''}"><a href="{:url('admin/abc/index')}"><i class="fa  fa-circle-o"></i> 文档分类</a></li>
        {/if}

        </ul>
      </li>
    {/if}

    <!-- 会员管理模块 -->
    {if condition="show_auth('admin/AuthRule/index') || show_auth('admin/AuthGroup/index') || show_auth('admin/AdminUser/index')"}
      <li class="treeview {:class_active('User/UserRank')? 'active' : ''}">
        <a href="#">
          <i class="fa fa-users"></i> <span>会员管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        {if condition="show_auth('admin/User/index')"}
          <li class="{:class_active('User','index')? 'active' : ''}"><a href="{:url('admin/User/index')}"><i class="fa  fa-circle-o"></i> 会员列表</a></li>
        {/if}

        {if condition="show_auth('admin/UserRank/index')"}
          <li class="{:class_active('UserRank','index')? 'active' : ''}"><a href="{:url('admin/UserRank/index')}"><i class="fa  fa-circle-o"></i> 会员级别</a></li>
        {/if}

        </ul>
      </li>
    {/if}

    <!-- AUTH权限升级模块 -->
    {if condition="show_auth('admin/AuthRule/index') || show_auth('admin/AuthGroup/index') || show_auth('admin/AdminUser/index')"}
      <li class="treeview {:class_active('AdminUser/AuthRule/AuthGroup')? 'active' : ''}">
        <a href="#">
          <i class="fa fa-gavel"></i> <span>权限管理</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
        {if condition="show_auth('admin/AuthRule/index')"}
          <li class="{:class_active('AuthRule','index')? 'active' : ''}"><a href="{:url('admin/AuthRule/index')}"><i class="fa fa-circle-o"></i> 权限列表</a></li>
        {/if}

        {if condition="show_auth('admin/AuthGroup/index')"}
          <li class="{:class_active('AuthGroup','index')? 'active' : ''}"><a href="{:url('admin/AuthGroup/index')}"><i class="fa fa-circle-o"></i> 用户组列表</a></li>
        {/if}

        {if condition="show_auth('admin/AdminUser/index')"}
          <li class="{:class_active('AdminUser','index')? 'active' : ''}"><a href="{:url('admin/AdminUser/index')}"><i class="fa fa-circle-o"></i> 用户列表</a></li>
        {/if}
        </ul>
      </li>
    {/if}

      <li class="treeview {:class_active('SystemConfig')? 'active' : ''}">
        <a href="#">
          <i class="fa fa-cogs"></i> 
          <span>系统配置</span>
          <span class="pull-right-container">
            <i class="fa fa-angle-left pull-right"></i>
          </span>
        </a>
        <ul class="treeview-menu">
          <li class="{:class_active('SystemConfig','wechatapi')? 'active' : ''}"><a href="{:url('admin/SystemConfig/wechatApi')}"><i class="fa fa-circle-o"></i> 微信接口</a></li>

          <li class="{:class_active('SystemConfig','wechatpay')? 'active' : ''}"><a href="{:url('admin/SystemConfig/wechatPay')}"><i class="fa fa-circle-o"></i> 微信支付</a></li>

          <li class="{:class_active('SystemConfig','smtpset')? 'active' : ''}"><a href="{:url('admin/SystemConfig/smtpSet')}"><i class="fa fa-circle-o"></i> 邮箱设置</a></li>
        </ul>
      </li>



    </ul>
  </section>
  <!-- /.sidebar -->
</aside>
